package com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.repository;

import com.slz3.business.frame.module.Repositorys;
import com.slz3.business.frame.util.VE;
import com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.domain.GooBaseGoodsSpecificationValue;
import com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.domain.GooBaseGoodsSpecificationValueCondition;
import com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.steward.GooBaseGoodsSpecificationValueSpecification;

import java.util.List;
import java.util.UUID;

public class GooBaseGoodsSpecificationValueCustomizedRepositoryImpl implements GooBaseGoodsSpecificationValueCustomizedRepository {

    @Override
    public void test() {
        System.err.println(Repositorys.gooBaseGoodsSpecificationValue);
        System.err.println("test: customized repository");
    }

    @Override
    public List<GooBaseGoodsSpecificationValue> findByUpperList(List<UUID> uuidList) {


        if (VE.isEmpty(uuidList)) {
            return null;
        }

        GooBaseGoodsSpecificationValueCondition condition = new GooBaseGoodsSpecificationValueCondition();
        condition.setUpperList(uuidList);

        return Repositorys.gooBaseGoodsSpecificationValue.findAll(GooBaseGoodsSpecificationValueSpecification.findJoin(condition));


    }

}
